-- GENERATED SPELL FOR [Gravelsnout Surveyor] --


function spell0_4116(pUnit, Event) --@Blizzard,n/a--
pUnit:FullCastSpellOnTarget(6141,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4116', 8000, 1)
end

function spell1_4116(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20806,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4116', 7000, 1)
end

function Sorts_4116(pUnit, Event)
local choix_sorts_4116 = math.random(0, 1)
if choix_sorts_4116 == 0 then
pUnit:RegisterEvent('spell0_4116', 1, 1)
end
if choix_sorts_4116 == 1 then
pUnit:RegisterEvent('spell1_4116', 1, 1)
end
end

function mob4116_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4116', math.random(1500, 3000), 1)
end

function mob4116_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4116_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4116_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4116, 1, 'mob4116_Action')
RegisterUnitEvent(4116, 2, 'mob4116_Leave')
RegisterUnitEvent(4116, 3, 'mob4116_Kill')
RegisterUnitEvent(4116, 4, 'mob4116_Die')
